#include "progressline.h"
#include "ui_progressline.h"
#include<QMouseEvent>
progressline::progressline(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::progressline)
{
    ui->setupUi(this);
}

progressline::~progressline()
{
    delete ui;
}

void progressline::adjustprogress(int length)
{
    ui->ready->setFixedWidth(length);
}

void progressline::mousePressEvent(QMouseEvent *event)
{
    int x=event->pos().x();
    emit setprogress(x);
}
